/* Melon's Gallery Maker! - Bubble Zone! v0.2 */

#shade {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0px;
    left: 0px;
    z-index: -10;
    background-image: url("https://textures.neocities.org/textures/water/ciq60572.jpg");
    background-size: 100%;
    background-color: black;
    opacity: 0.5;
}

/* Gallery Pages */

#title {
    font-size: clamp(12px, 4vw, 50px); 
    padding: 15px;
    max-width: 1000px;
    position: sticky;
    top: 0px;
    background: rgba(154, 143, 216, 0.5);
    margin: auto;
}
.subtitle {
    background-color: rgba(255, 255, 255, 0.187);
    
    border-radius: 50px;
    letter-spacing: 1px;
    padding: 15px;
    margin: 20px auto;
    max-width: 500px;
}
.galleries {
    margin-top: 100px;
    margin-left: 0px;
    max-width: 60vw;
}
.gallery-images {
    margin-bottom: 50px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.gallery-images figure {
    margin: 10px;
    display: inline-block;
    max-width: min-content;
    user-select: none; 
}
.gallery-images a {
    display: inline-block;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.466);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    border: 2px solid #efcbff;
}
.gallery-images a:hover {
    border-color: #ee4aee;
}

.gallery-images span {
    text-align: center;
    display: block;
}

.page-links {
    text-align: center;
}

.page-links ul {
    padding: 0px 5px;
    margin: 10px 0px;
    display: inline-block;
}
.page-links li {
    list-style: none;
    display: inline;
    margin: 0px 3px;
}
footer {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    font-style: italic;
    font-variant: small-caps;
    margin-top: 20px;
}
footer a:link {
    color:rgba(255, 142, 230, 0.9)
}
footer a:hover {
    color:rgba(255, 38, 208, 0.9)
}

/* Styling for JavaScript viewer (if enabled) */

#js-viewer {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-color: rgba(59, 17, 70, 0.443);
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;

    animation: img-appear 1s ease-in-out backwards;
}

#js-viewer span { /* Button container */
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    position: absolute;
    top: 20px;
}

#js-viewer span button {
    border-radius: 10px;
    margin: 5px 0px;
    padding: 10px;
    cursor: url('/img/pawcursor_highlight.png'), auto;
    position: relative;

    width: 64px;
    height: 64px;
}

#js-viewer span button::before { /* Create pseudo-element img that is flippable! */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("/img/button-raya-r.png");
    background-size: cover;
    background-position: center;
}

#js-viewer-prev { /* Flip that prev button!! */
    transform: scaleX(-1);
}

#js-viewer span button:active {
    background-color: #e5e5e5;
    top: 3px;
}

#js-viewer-caption {
    background-color: rgba(255, 255, 255, 0.539);
    text-align: center;
    font-size: 16px;
    padding: 15px 15px;
    margin-top: 50px;
    margin-bottom: 10px;
    max-width: 700px;
    position: absolute;
    top: 50px;

    transition: opacity 0.5s;
}

#js-viewer img {
    max-width: 100vw;
    max-height: 80vh;
    object-fit: contain;
    border: 3px solid rgb(231, 200, 219);
    border-radius: 15px;
    user-select: none; 
    position: absolute;
    top: 220px;
}
